<?php
$sql_dz="select * from $tb_dz  where jian = '1' order by tdate desc limit 8 ";
$cn_dz=mysql_db_query($db_name,$sql_dz);
?>
<link href="../images/bj.css" rel="stylesheet" type="text/css">
<table width="100%"  border="0" cellpadding="0">
<tr class="redb">
    <td height="40" valign="middle" class="dantiaokuan"><!-- 动态信息 -->
    <img src="../images/spacer.gif" width="80" height="1" />动态信息<img src="../images/spacer.gif" width="120" height="1" /><a href="show_dzxx.php?jian=1"  target="_blank">更多</a></td>
  </tr>
  <tr class="fawenbg">
    <td height="200" valign="top">

<table width="100%"  border="0" cellpadding="0" cellspacing="3" class="indexlmtext">
            <tr align="left" height="2">
        <td height="2"></td>
        <td height="2"></td>
      </tr>
<?php 		$i=1;
		 while($row_dz = mysql_fetch_array($cn_dz)){
		 
		 ?>
      <tr align="left">
        <td width="86%">&middot;<?
		 $outtitle=$row_dz[title];
		/*if(strlen($row_dz[pic])>25)
		{ 
			$msg="<font color=\"red\">[图片]</font>";
			if(strlen($outtitle)>25){
				$outtitle=substr_cut($outtitle,24);
			}
		 }
		else 
			{
			$msg="";*/
			if(strlen($outtitle)>27){
				$outtitle=substr_cut($outtitle,26);
				}
			//}		
		 
echo $msg."<a href='";
		if($row_dz[souceid]==126){
			echo "xxtdshow.php";
		}else{
			echo "detailshow.php";
		}
		echo "?id=$row_dz[id]'  target='_blank' title='标题：".$row_dz[title]." &#13;&#10;录入：".$row_dz[author]."&#13;&#10;日期：".$row_dz[tdate]."' class='dong'>";
echo $outtitle."</a>";
if($i<3){echo "<img src='../images/new.gif' width='23' height='16' border='0' />";}
	


		?>        </td>
        <td widzh="14%"><?php echo  shortdate($row_dz[tdate]) ?> </td>
        <?php
		$i++;
		 }?>
      </tr>
    </table> 
  </tr>
</table>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
